//
//  MDHomeGroup.swift
//  麦兜直播
//
//  Created by yeqingyu on 16/10/15.
//  Copyright © 2016年 yeqingyu. All rights reserved.
//

import UIKit

class MDHomeGroup: NSObject {
    
    
    var room_list:[[String : NSObject]]? {
        didSet{
        guard let room_list = room_list else { return }
        
            for dic in room_list {
                let room = MDRoom(dic: dic)
                rooms.append(room)
            }
        }
    }
    
    
    var tag_name : String?{
        didSet{

            icon_name = tag_name=="最热" ? "home_header_hot" : "home_header_normal"
        }
    }
    var icon_url : String = ""
    
    ///组的图片名称
    var icon_name:String = "home_header_normal"
    ///原来存放房间数组
    lazy var rooms:[MDRoom] = [MDRoom]()
    
    override init() {
        
    }
    
    init(dic:[String:Any]) {
        super.init()
        setValuesForKeys(dic)
    }
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
}
